package io.keyboard;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 
 * 测试键盘才输入
 * @author lcx
 *
 */
public class KeyInTest {

	
	public static void main(String[] args) throws IOException {
		InputStreamReader reader=new InputStreamReader(System.in);
		BufferedReader sr=new BufferedReader(reader);
		String str;
		while((str=sr.readLine())!=null)
		{
			if(str.equals("exit"))
			{
				System.out.println("YES");
				System.exit(1);
			}
			System.out.println(str);
		}
	}
}
